package com.hxgz.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Page {

  // 当前页号
  @ApiModelProperty(value = "页数", required = true)
  private int currPageNo = 1;

  // 页面大小，即每页显示记录数
  @ApiModelProperty(value = "页面大小", required = true)
  private int pageSize = 10;

  @ApiModelProperty(value = "排序方式 例如根据id 倒序/正序:id DESC/id ASC")
  private String orderBy = "id desc";
}
